package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Purmg;

import com.clouds.wms.dao.PurmgDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("purmgService")
public class PurmgServiceImpl implements PurmgService {
	@Resource(name="purmgDao")
	private PurmgDao purmgDao;

	@Override
	public PagesBean getPurmgList(String mgaa, String mgab, String mgac,String startMgad, String endMgad, int offset, int pageSize)	throws SysException {
		return purmgDao.getPurmgList(mgaa, mgab, mgac, startMgad, endMgad, offset, pageSize);
	}

	@Override
	public Purmg getPurmg(String mgaa,String mgab) throws SysException {
		return purmgDao.getPurmg(mgaa,mgab);
	}

	@Override
	public int savePurmg(Purmg purmg) throws SysException {
		return purmgDao.savePurmg(purmg);
	}
	
}
